package com.lyfei.yd.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lyfei.yd.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
@TableName("t_region")
public class Region extends BaseEntity<Region> {
    private Long pid;
    private String name;
    private Integer type;
    private Integer code;

    @TableField(exist = false)
    public List<Region> children = new ArrayList<>();
}
